package com.jvyou.app.ds.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 学员信息表(Student)表实体类
 *
 * @author 橘柚
 * @since 2025-04-17 15:30:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ds_student")
public class Student implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 关联用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 已完成总学时
     */
    @TableField("total_hours")
    private Integer totalHours;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;


    /**
     * 报名类型，字典enrollment-type
     */
    @TableField("enrollment_type")
    private String enrollmentType;

    /**
     * 当前学习科目
     */
    @TableField("subject_id")
    private Long subjectId;

    /**
     * 学籍状态（1-在籍 2-休学 3-退学 4-毕业）learning-status
     */
    @TableField("learning_status")
    private String learningStatus;

    /**
     * 理论考试成绩
     */
    @TableField("theory_score")
    private Integer theoryScore;

    /**
     * 路考成绩
     */
    @TableField("driving_score")
    private Integer drivingScore;

    /**
     * 是否付款0是1否
     */
    @TableField("paid_status")
    private String paidStatus;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建人
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新人
     */
    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    /**
     * 逻辑删除标志（0-未删除，1-已删除）
     */
    @TableField("is_deleted")
    private String isDeleted;

    /**
     * 乐观锁版本号
     */
    @TableField("version")
    private Integer version;

    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private String idCard;

    /**
     * 签到状态
     */
    @TableField(exist = false)
    private String signInStatus;
}
